/*
    Bandleader
    Copyright (c) 2006 by Grant Yoshida

    Licensed under the GPL version 2 or later,
    please see COPYING for details.
*/

#ifndef DeleteBar_h
#define DeleteBar_h

#include "PtrFwd.h"
#include <QtGui/QUndoCommand>
#include <QtCore/QStringList>

//
//! Deletes a bar.
//
class DeleteBar : public QUndoCommand
{
public:
    DeleteBar(ChordView *view, int index, QUndoCommand *parent = 0);

    void undo();
    void redo();

private:
    ChordView *m_view;
    DocumentPtr m_document;
    int m_index;
    int m_deletedIndex;
    QStringList m_deletedBar;
};

#endif
